package com.pzhu.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.pzhu.model.entity.Menu;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zengqiuhu
 * @date 2023/6/30 15:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Api("菜单结果返回实例")
public class MenuVo extends Menu {

    @ApiModelProperty("子菜单列表")
    @TableField(exist = false)
    private List<Menu> children=new ArrayList<>();
}
